:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  place-items: center;
  min-width: 320px;
  min-height: 100vh;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}
button:hover {
  border-color: #646cff;
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

.card {
  padding: 2em;
}

#app {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 响应式布局 */
@media (max-width: 768px) {
  #app {
    padding: 1rem;
  }
}

/* 头部样式 */
.header {
  width: 100%;
  margin-bottom: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  padding: 30px;
  background-image: linear-gradient(45deg, #d4fffc, #fff, #fee4ff);
  text-align: center;
  border-radius: 10px;
}

.header .title {
  font-size: 56px;
  font-weight: 700;
  color: #646cff;
  margin-bottom: 20px;
}

.header .new-todo {
  width: 90%;
  padding: 20px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  font-size: 1.4rem;
  margin-top: 20px;
}

/* 主体样式 */
.main {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.main .list-do {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.main .list-do li {
  display: flex;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
  background-color: #fff;
  transition: background-color 0.3s;
}

.main .list-do li:hover {
  background-color: #f9f9f9;
}

.main .list-do li.completed label {
  text-decoration: line-through;
  color: #999;
}

.main .list-do li input {
  margin-right: 15px;
  width: 20px;
  height: 20px;
}

.main .list-do li button {
  margin-left: auto;
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: #c18585;
  transition: color 0.3s;
}

.main .list-do li button:hover {
  color: #ff6b6b;
}

/* 底部样式 */
.footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-top: 1px solid #ccc;
  background-color: #f5f5f5;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
}

.footer .todo-count {
  font-size: 1.1em;
  color: #333;
}

.footer .filters li a {
  color: #646cff;
  margin: 5px;
  padding: 8px 12px;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 5px;
  transition: border-color 0.3s;
}

.footer .filters li a:hover {
  border-color: #646cff;
}

.footer .filters li a.selected {
  border-color: #646cff;
  background-color: #646cff;
  color: #fff;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }
  a:hover {
    color: #747bff;
  }
  button {
    background-color: #f9f9f9;
  }
}